#include <iostream>
#include <string>
using namespace std;
namespace SV_TAINTED_XSS_REFLECTED {

	namespace bad {
		void vulnerableServer() {
			string query = getenv("QUERY_STRING");
			cout << "Viewing query ";
			cout << query << endl;
		}
	}



	namespace good {
		string validate(string& query);
		void secureServer() {
			string query = getenv("QUERY_STRING");
			cout << "Viewing query ";
			string validated_query = validate(query);
			cout << validated_query << endl;
		}

	}

}